package game.games.rpg;

import java.util.Random;

public class Dice
{
    private static final Random random = new Random();
    
    public static int roll(int count, int sides)
    {
        int total = 0;
        for (int i = 0; i < count; i++)
        {
            total += random.nextInt(sides) + 1;
        }
        return total;
    }
}
